package com.icatw.club.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.icatw.club.domain.ClubMember;
import org.springframework.ui.ModelMap;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 社团会员Service接口
 *
 * @author icatw
 * @date 2022-06-09
 */
public interface IClubMemberService extends IService<ClubMember> {
    /**
     * 查找会员列表 mp
     *
     * @param clubMember
     * @return {@link List}<{@link ClubMember}>
     */
    List<ClubMember> selectMemberList(ClubMember clubMember);

    /**
     * 导出成员列表
     *
     * @return {@link List}<{@link ClubMember}>
     */
    List<ClubMember> selectMemberList();

    /**
     * 导出
     *
     * @param map      地图
     * @param request  请求
     * @param response 响应
     */
    void export(ModelMap map, HttpServletRequest request, HttpServletResponse response);

    /**
     * 导入excel
     *
     * @param file 文件
     * @return boolean
     */
    boolean importExcel(MultipartFile file);
}
